package com.raymond.client.constants;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * 全局常量配置
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-07-13 18:01
 */
public interface GlobalConstants {
    /**
     * 空字节
     */
    byte[] EMPTY_BYTES= new byte[0];
    /**
     * 默认 Charset
     */
    Charset DEFAULT_TRANSPORT_CHARSET = StandardCharsets.UTF_8;

    /**
     * 空字符串
     */
    String EMPTY_STRING = "";

    int DEFAULT_WINDOW_MONITOR_INTERVAL = -1;
    int DEFAULT_REQUEST_EXPIRY_TIMEOUT = 10000;
    int DEFAULT_RESPONSE_EXPIRY_TIMEOUT = 15000;
    int DEFAULT_CONNECT_EXPIRY_TIMEOUT = 30000;

    String[] EMPTY_STRING_ARRAY = new String[0];

}
